import {
  service as request
} from '@/utils/request'

export function getList(data) {
  return request({
    url: `/hawk/problem/search/${data.current}/${data.size}`,
    method: 'post',
    data: data
  })
}
export function doAdd(data){
    return request({
        url: '/alarm/list',
        method: 'post',
        data
    })
}
export function doEdit(data) {
  return request({
    url: '/hawk/problem/update',
    method: 'put',
    data: data
  })
}
export function doDelete(idArray) {
  return request({
    url: `/hawk/problem/del`,
    method: 'delete',
    data: idArray
  })
}
export function getOne(id) {
  return request({
    url: `/alarm/list/id/${id}`,
    method: 'get'
  })
}
export function getAll() {
  return request({
    url: `/alarm/list`,
    method: 'get'
  })
}